package com.msmall.community.roster.dao;

import java.util.List;

import com.msmall.base.dao.BaseDao;
import com.msmall.community.roster.model.RosterGroup;

public interface RosterGroupDao extends BaseDao<RosterGroup, Long>{

	/**
	 * 获得用户的所有组
	 */
	public List<RosterGroup> getGroups(Long userid) throws Exception;
	
	/**
	 * 获得用户的组,排除groupNames: 以逗号分隔的组名, eg:陌生人,黑名单
	 */
	public List<RosterGroup> getRosterGroupLimit(Long userid, String groupNames) throws Exception;
	/**
	 * 获得用户的组
	 */
	public RosterGroup getGroup(Long userid, String groupName) throws Exception;
}
